﻿<div class="bg-light lter b-b wrapper-sm">
    <h1 class="m-n font-thin h4">用户管理/信息</h1>
</div>

<div class="wrapper-sm">
    <tabset class="tab-container" ng-init="steps={percent:35, step1:false, step2:false, step3:false, step4:false, step5:false, step6:true}">

        <tab heading="账户信息" active="steps.step1" select="steps.percent=35" ui-sref="app.management.account_info">

            <progressbar value="steps.percent" class="progress-xs" type="success"></progressbar>
        </tab>

        <tab heading="实名认证" active="steps.step2" disabled="step1.$invalid" select="steps.percent=55" ui-sref="app.management.realname_authentication">
        </tab>

        <tab heading="常跑路线" active="steps.step3" disabled="step2.$invalid" select="steps.percent=75" ui-sref="app.management.running_route">
        </tab>

        <tab heading="关注线路" active="steps.step4" select="steps.percent=100" ui-sref="app.management.concern_route">
        </tab>

        <tab heading="我的银行卡" active="steps.step5" disabled="step4.$invalid" select="steps.percent=80" ui-sref="app.management.bank">
        </tab>
        <tab heading="诚信记录" active="steps.step6" disabled="step5.$invalid" select="steps.percent=100" ui-sref="app.management.evaluate">
            <div class="wrapper-sm" ng-controller="userevaluateCtrl">
                <label class="control-label pull-left m-l m-r ">车牌号：{{carCode}}</label>

                <div class="line line-xs pull-in"></div>

                <i class="glyphicon glyphicon-user m-l-xs m-r-xs m-b-xs text-lg text-danger"></i>评分：<label class="text-danger">{{average| number:1}}分</label><br />
                <label class="curpoint" ng-click="loadData(3)">全部（<label class="curpoint text-danger">{{total}}</label>）</label> / <label class="curpoint" ng-model="praiseCount" ng-click="loadData(1)">好评（<label class="curpoint text-danger">{{praiseCount}}</label>）</label> / <label class="curpoint" ng-click="loadData(2)">差评（<label class="curpoint text-danger">{{total - praiseCount}}</label>）</label>
                <div ng-repeat="item in evaluateList track by $index ">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            <div class="text-md">
                                <label>
                                    {{item.TotalPoint}}
                                </label> <rating ng-init="average=(item.TotalPoint)/2" ng-model="average" readonly="isReadonly" aria-labelledby="default-rating" max="max" state-on="'fa fa-star text-warning'" state-off="'fa fa-star-o btn-link'"></rating> <b class="text-danger">({{item.Name}})</b>
                                <label class="pull-right">{{item.DateString}}</label>
                            </div>
                        </div>
                        <div class="panel-body">

                            <div class="col-md-3 form-group text-base">
                                <label>诚信度</label> <rating ng-init="credibility=item.Integrity/2" ng-model="credibility" readonly="isReadonly" max="max" state-on="'fa fa-star text-warning'" state-off="'fa fa-star-o btn-link'"></rating> <b class="text-danger">({{item.Integrity}})</b>
                            </div>

                            <div class="col-md-3 form-group text-base">
                                <label>实效性</label> <rating ng-init="timeliness=item.Timeliness/2" ng-model="timeliness" readonly="isReadonly" max="max" state-on="'fa fa-star text-warning'" state-off="'fa fa-star-o btn-link'"></rating> <b class="text-danger">({{item.Timeliness}})</b>
                            </div>
                            <div class="col-md-3 form-group text-base">
                                <label>服务态度</label> <rating ng-init="attitude=item.Attitude/2" ng-model="attitude" readonly="isReadonly" max="max" state-on="'fa fa-star text-warning'" state-off="'fa fa-star-o btn-link'"></rating> <b class="text-danger">({{item.Attitude}})</b>
                            </div>
                            <div class="col-md-3 form-group text-base">
                                <label>运输价格</label> <rating ng-init="freight=item.TransPrice/2" ng-model="freight" readonly="isReadonly" max="max" state-on="'fa fa-star text-warning'" state-off="'fa fa-star-o btn-link'"></rating> <b class="text-danger">({{item.TransPrice}})</b>
                            </div>

                            <div class="line line-dashed b-b line-lg "></div>

                            <label class="control-label pull-left m-t-xs">{{item.Comment}}</label>

                        </div>
                    </div>
                </div>
                <div>
                    <pagination items-per-page="pageSize"
                                boundary-links="true"
                                ng-change="pageChanged()"
                                total-items="totalItems"
                                max-size="maxSize"
                                ng-model="currentPage"
                                class="pagination-sm"
                                rotate="false"
                                previous-text="&lsaquo;"
                                next-text="&rsaquo;"
                                first-text="&laquo;"
                                last-text="&raquo;">
                    </pagination>
                </div>
            </div>

        </tab>
    </tabset>


</div>
